export interface Project {
  id: string
  title: string
  description: string
  category: 'mobile' | 'web' | 'outsourcing' | 'admin'
  technologies: string[]
  images: string[]
  displayMode: 'carousel' | 'scroll'
  duration: string
  year: string
  featured: boolean
  teamSize?: string
  highlights?: string[]
  details?: string
}

export const projects: Project[] = [
  {
    id: '1',
    title: 'EcoTracker 移动应用',
    description: '一款帮助用户追踪碳足迹和环保行为的移动应用，具有直观的数据可视化和社交分享功能。',
    category: 'mobile',
    technologies: ['React Native', 'TypeScript', 'Redux', 'Firebase'],
    images: [
      'https://trae-api-sg.mchost.guru/api/ide/v1/text_to_image?prompt=modern%20mobile%20app%20interface%20eco%20tracker%20carbon%20footprint%20green%20theme%20dashboard%20charts%20dark%20mode&image_size=portrait_16_9',
      'https://trae-api-sg.mchost.guru/api/ide/v1/text_to_image?prompt=mobile%20app%20statistics%20screen%20environmental%20data%20charts%20graphs%20green%20energy%20dark%20theme&image_size=portrait_16_9',
      'https://trae-api-sg.mchost.guru/api/ide/v1/text_to_image?prompt=mobile%20app%20social%20sharing%20eco%20achievements%20community%20features%20dark%20interface&image_size=portrait_16_9'
    ],
    displayMode: 'carousel',
    duration: '3个月',
    year: '2024',
    featured: true,
    teamSize: '3人',
    highlights: [
      '实时碳足迹追踪和分析',
      '个性化环保建议推荐',
      '社交分享和挑战功能',
      '数据可视化图表展示'
    ],
    details: 'EcoTracker 是一款创新的环保追踪应用，通过先进的算法帮助用户了解和减少自己的碳足迹。应用集成了多种数据源，包括交通出行、能源消耗、饮食习惯等，为用户提供全面的环保数据分析。'
  },
  {
    id: '2',
    title: 'CloudSync 企业管理平台',
    description: '为中小企业打造的云端协作管理平台，集成项目管理、团队协作、文档共享等功能。',
    category: 'admin',
    technologies: ['Vue 3', 'TypeScript', 'Element Plus', 'Node.js'],
    images: [
      'https://trae-api-sg.mchost.guru/api/ide/v1/text_to_image?prompt=enterprise%20dashboard%20interface%20project%20management%20dark%20theme%20modern%20ui%20charts%20analytics&image_size=landscape_16_9',
      'https://trae-api-sg.mchost.guru/api/ide/v1/text_to_image?prompt=team%20collaboration%20interface%20task%20management%20kanban%20board%20dark%20mode%20professional&image_size=landscape_16_9',
      'https://trae-api-sg.mchost.guru/api/ide/v1/text_to_image?prompt=document%20sharing%20platform%20file%20management%20cloud%20storage%20interface%20dark%20theme&image_size=landscape_16_9',
      'https://trae-api-sg.mchost.guru/api/ide/v1/text_to_image?prompt=analytics%20dashboard%20business%20metrics%20data%20visualization%20charts%20dark%20professional%20ui&image_size=landscape_16_9'
    ],
    displayMode: 'scroll',
    duration: '4个月',
    year: '2024',
    featured: true,
    teamSize: '5人',
    highlights: [
      '多租户架构设计',
      '实时协作和通信',
      '智能项目分析',
      '企业级安全保障'
    ],
    details: 'CloudSync 是一个功能强大的企业级协作平台，专为中小企业的数字化转型而设计。平台采用微服务架构，支持高并发访问，提供完整的项目生命周期管理解决方案。'
  },
  {
    id: '3',
    title: 'ArtGallery 在线展览平台',
    description: '为艺术家和画廊打造的在线展览平台，支持3D虚拟展厅、作品展示和在线销售。',
    category: 'web',
    technologies: ['React', 'Three.js', 'WebGL', 'Stripe'],
    images: [
      'https://trae-api-sg.mchost.guru/api/ide/v1/text_to_image?prompt=virtual%20art%20gallery%203d%20exhibition%20space%20modern%20minimalist%20dark%20theme%20paintings%20sculptures&image_size=landscape_16_9',
      'https://trae-api-sg.mchost.guru/api/ide/v1/text_to_image?prompt=online%20art%20marketplace%20gallery%20interface%20artwork%20showcase%20dark%20elegant%20design&image_size=landscape_16_9'
    ],
    displayMode: 'carousel',
    duration: '5个月',
    year: '2023',
    featured: false,
    teamSize: '4人',
    highlights: [
      '3D虚拟展厅体验',
      '高清作品展示',
      '在线交易系统',
      '艺术家作品管理'
    ],
    details: 'ArtGallery 是一个革命性的在线艺术展览平台，利用WebGL和Three.js技术创造沉浸式的3D虚拟展厅体验。平台为艺术家提供专业的作品展示空间，为收藏家提供便捷的在线购买渠道。'
  },
  {
    id: '4',
    title: 'FitnessPro 健身追踪应用',
    description: '专业的健身追踪和训练计划应用，包含AI教练、营养建议和社区功能。',
    category: 'mobile',
    technologies: ['Flutter', 'Dart', 'Firebase', 'TensorFlow'],
    images: [
      'https://trae-api-sg.mchost.guru/api/ide/v1/text_to_image?prompt=fitness%20tracking%20mobile%20app%20workout%20interface%20dark%20theme%20health%20metrics%20charts&image_size=portrait_16_9',
      'https://trae-api-sg.mchost.guru/api/ide/v1/text_to_image?prompt=fitness%20app%20exercise%20library%20workout%20videos%20training%20plans%20dark%20modern%20ui&image_size=portrait_16_9',
      'https://trae-api-sg.mchost.guru/api/ide/v1/text_to_image?prompt=nutrition%20tracking%20app%20meal%20planning%20calorie%20counter%20dark%20interface%20health%20data&image_size=portrait_16_9'
    ],
    displayMode: 'scroll',
    duration: '6个月',
    year: '2023',
    featured: true,
    teamSize: '6人',
    highlights: [
      'AI智能训练计划',
      '实时运动数据追踪',
      '个性化营养建议',
      '社区挑战和分享'
    ],
    details: 'FitnessPro 是一款集成人工智能的专业健身应用，通过机器学习算法为用户提供个性化的训练计划和营养建议。应用支持多种运动类型的数据追踪，并建立了活跃的健身社区。'
  }
]

export const getCategoryName = (category: Project['category']): string => {
  const categoryMap = {
    mobile: '移动应用',
    web: '网页应用',
    outsourcing: '外包项目',
    admin: '管理后台'
  }
  return categoryMap[category]
}

export const getFeaturedProjects = (): Project[] => {
  return projects.filter(project => project.featured)
}

export const getProjectsByCategory = (category: Project['category']): Project[] => {
  return projects.filter(project => project.category === category)
}
